requirejs.config({
    paths: {
        app: '../app',
        jquery: 'jquery-1.10.2',
        bootstrap:'bootstrap.min',
        backbone:'backbone',
        underscore:'underscore',
        ejs:'ejs.min',
        mustache:'mustache',
        'backbone.mutators':'backbone.ext/backbone.mutators.min',
        'backbone.memento':'backbone.ext/backbone.memento',
        'backbone.workflow':'backbone.ext/backbone.workflow',
        'backbone.validation':'backbone.ext/backbone.validation.amd',
        'backbone.nested':'backbone.ext/backbone.nested',
        'backbone.relational':'backbone.ext/backbone.relational',
        'backbone.query':'backbone.ext/query-engine',
        metisMenu:'../default/js/plugins/metisMenu/jquery.metisMenu',
        main:'../default/js/main',
        jeditable:'../default/js/plugins/jeditable/jquery.jeditable',
        dataTables:'../default/js/plugins/dataTables/jquery.dataTables.r',
        'dataTables.bootstrap':'../default/js/plugins/dataTables/dataTables.bootstrap',
        'tagsinput':'jquery.tagsinput',
        'dropzone':'../default/js/plugins/dropzone/dropzone',
        'ajaxUpload':'../default/js/plugins/ajaxfileupload',
        
    },
    //指定某些模块调用不同版本jquery
    /*map: {
        '*': {
            'jquery': 'jquery'
        },
        'app/main': {
            'jquery': 'j'
        }
    },*/
    shim: {
        "bootstrap": {
            deps: [ 'jquery' ],
            exports: "bootstrap"
        },
        "backbone": {
            deps: [ "underscore", 'jquery' ],
            exports: "Backbone"
        },
        "backbone.mutators": {
            deps: [ "backbone" ],
        },
        "backbone.memento": {
            deps: [ "backbone" ],
        },
        "backbone.workflow": {
            deps: [ "backbone" ],
        },
        "backbone.validation": {
            deps: [ "backbone" ],
        },
        "backbone.nested": {
            deps: [ "backbone" ],
        },
        "backbone.relational": {
            deps: [ "backbone" ],
        },
        "backbone.query": {
            deps: [ "backbone" ],
        },
        "underscore": {
            exports: "_"
        },
        "metisMenu": {
            deps: [ "jquery" ],
        },
        "inspinia": {
            deps: [ "jquery" ],
        },
        "jeditable":{
            deps: [ "jquery" ],
        },
        "dataTables":{
            deps: [ "jquery" ],
        },
        "dataTables.bootstrap":{
            deps: [ 'bootstrap', 'dataTables' ],
        },
        "tagsinput":{
            deps: [ "jquery" ],
        },
        "dropzone":{
            deps: [ "jquery" ],
        },
        "ajaxUpload":{
            deps: [ "jquery" ],
        },
    },

});

define(['jquery', 'bootstrap', viewJs, 'ejs'], function(){

});